package com.lbj.mall.common.entity.vo;

import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;
import java.util.List;

/**
 * SPU上架，需要传递给es以下信息
 */
@Data
@ToString
public class SkuUpVo {
    private Long skuId;
    private Long spuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;
    private Boolean hasStock; // 是否有库存
    private Long hotScore;  // 热度评分
    private Long brandId;
    private Long catalogId;
    private String brandName;
    private String brandImg;
    private String catalogName;
    private List<Attr> attrs;

    @Data
    @ToString
    public static class Attr {
        private Long attrId;
        private String attrName;
        private String attrValue;
    }
}
